//k1 edit

private ["_units", "_group"];
//_modifier = [_this, 0, 1] call BIS_fnc_param;

if (isMultiplayer) then [{
	_units = call A3E_fnc_GetPlayers - Escape_Players_enemy; //
	if (count _units == 0) then {_units = allPlayers - [entities "HeadlessClient_F"] - Escape_Players_enemy}; //
	_group = grpNull;
	{
		if (isPlayer _x) exitwith {_group = group _x};
	} forEach _units;
},{
	_group = group player;
}];

_group